package com.gongpingjialoan.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by Administrator on 2015/12/29.
 */
public class AddLikeBoardCast extends BroadcastReceiver {

    private CollectChange mCollectChange;

    public static final String ADD_REMOVE_LIKE = "con.gongpingjia.collectchange";

    public void setCollectChange(CollectChange collectChange) {
        mCollectChange = collectChange;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals(ADD_REMOVE_LIKE)){
            if(mCollectChange!=null){
                mCollectChange.change();
            }
        }
    }



    public interface CollectChange{
        public void change();
    }
}
